#!/bin/sh

$HADOOP_HOME/bin/hadoop fs -rmr output/mediumevents
$HADOOP_HOME/bin/hadoop fs -rm input/mediumevents/event_trace.tab
$HADOOP_HOME/bin/hadoop fs -put $PP_TESTS_DIR/event_trace.tab input/mediumevents/event_trace.tab
java -cp $PIGDIR/pig.jar org.apache.pig.Main -param inputDir=$PP_TESTS_DIR mediumevents_avg_mr.pig
$HADOOP_HOME/bin/hadoop fs -cat /user/cristina/output/mediumevents/mediumevents_avg.rez

